var a = require('9CF0519170B67DCFFA963996C0721B27.js').jumpDo;
module.exports = Behavior({
  properties: {},
  options: {},
  data: {
    __InforJumpMap: {
      1: '/packageInformation/pages/essayDetail/essayDetail?',
      2: '/packageInformation/pages/photosDetail/photosDetail?',
      3: '/packageInformation/pages/essayDetail/essayDetail?',
      4: '/packageInformation/pages/videoDetail/videoDetail?',
      5: '/packageInformation/pages/compilations/compilations?aim=essay&',
      6: '/packageInformation/pages/compilations/compilations?aim=video&',
    },
  },
  pageLifetimes: {},
  created: function () {},
  attached: function () {},
  ready: function () {},
  methods: {
    InforJump: function (e) {
      var o = e.currentTarget.dataset.one,
        t = o.id,
        i = o.sub_type,
        n = o.content_type,
        p = this.data.__InforJumpMap;
      if (2 != n) {
        if (4 == i) {
          var s = getCurrentPages(),
            r = '';
          if (
            'packageInformation/pages/index/index' === s[s.length - 1].route
          ) {
            var c = s[s.length - 1].data.p__query,
              l = c.sort,
              d = c.top_cid,
              g = c.cid,
              m = c.key_words;
            r = '/packageInformation/pages/videoDetail/videoDetail?sort='
              .concat(l, '&top_cid=')
              .concat(d, '&cid=')
              .concat(g, '&key_words=')
              .concat(m, '&');
          } else if (
            'packageInformation/pages/compilations/compilations' ===
            s[s.length - 1].route
          ) {
            var f = s[s.length - 1].data.id;
            r =
              '/packageInformation/pages/videoDetail/videoDetail?parent_id='.concat(
                f,
                '&sort=1&',
              );
          }
          p[4] = r;
        }
        console.log('InforJump url: ', p[i] + 'id='.concat(t)),
          wx.navigateTo({ url: p[i] + 'id='.concat(t) });
      } else a({ linkType: o.link_type, linkParams: o.link_params });
    },
  },
});
